{% extends "base.html" %}


{% block title %}
权限管理
{% endblock %}

{% block label %}
权限管理<a class="btn btn-default pull-right" href="/add_permission/">添加</a>
{% endblock %}


{% block contenter %}
<div class="col-lg-12">
    <table class="table">
        <thead>
        <tr>
            <th>名称</th>
            <th>描述</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for per in per_list %}
        <tr>
            <td class="col-lg-4">{{ per.per_name }}</td>
            <td class="col-lg-4">{{ per.per_dec }}</td>
            <td class="col-lg-4">
                <a href="/edit_permission/" class="btn btn-default">修改</a>
                <a href="/permission" class="btn btn-default">删除</a>
                <a class="btn btn-default" href="./position_permission.html">关联职位</a>
            </td>
        </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
<!-- /.col-lg-12 -->

{% endblock %}